import java.awt.event.*;


public class ConsoleListener implements ActionListener {
// Console is an intelligent terminal that reads an entire command
// line and then generates an interrupt. It should provide a method
// for the kernel to read the command line.

private IntController hint;
private String l;
public void setInterruptController(IntController i)
{
  hint = i;
}
public void actionPerformed(ActionEvent e)
{
		// store text and call an interruption
  l = e.getActionCommand();
  hint.set(15);
}
  
public String getLine()
{
  return l;
} 

}
